<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<script type="text/javascript">
	function addFriend(doorplate){
		$.post("friendAddSave.htm",{doorplate:doorplate,
									content:$("#msgContent").val()
									},function(data){
										if(data=='success'){
											$("#add_friend_dialog").empty();
											$("#add_friend_dialog").hide();
											operateTip("message_send_friend_tip_success");
										}
									});
	}
</script>
<h4>
	<a href="javascript:void(0);"
		onclick="$('#add_friend_dialog').hide();"></a> 请求加&nbsp;<c:out value="${family.nickname}" />&nbsp;做邻居
</h4>
<div class="addFriend_imgBOX">
	<img src="${family.avatar}" alt="xx" width="58" height="58"
		id="add_friend_image" /> <em>需通过对方的验证才能成为邻居<br />&nbsp;</em>
	<p>
		做邻居请求附言：
		<textarea name="msgContent" cols="" rows="" id="msgContent"></textarea>
	</p>
</div>
<div class="addFriendAn">
	<div class="h_button fr ml5 mt5 mr15" onclick="$('#add_friend_dialog').hide();"><strong>取 消</strong></div>
	<div class="h_button fr mt5" onclick="addFriend('${family.doorplate}');"><strong>确 定</strong></div>
</div>

